
using System;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
 // ERROR: Not supported in C#: OptionDeclaration
using NHibernate;
namespace NCS_CS
{
	internal partial class frmchanel : System.Windows.Forms.Form
	{


		private void Command1_Click(System.Object eventSender, System.EventArgs eventArgs)
		{
			if (ModMain.getsession().IsDirty()) {
				ModMain.getsession().Flush();
				ModMain.gDb.myLoadEleChanel();
			}
			this.Visible = false;
		}

		private void Command2_Click(System.Object eventSender, System.EventArgs eventArgs)
		{
			this.Visible = false;
		}



		private void frmchanel_Load(System.Object eventSender, System.EventArgs eventArgs)
		{
			IList o = null;
			o = ModMain.getsession().CreateCriteria(typeof(NCS.chanel)).List();
			Debug.Print(Convert.ToString(o.Count));
			this.DataGrid1.DataSource = o;
			//.GetEnumerator()
			//Exit Sub
		}

	}
}
